﻿using System.Runtime.CompilerServices;

namespace DI_test;

public class OSsInjector
{
    public static void InjectOS(Computer computer, OSs os){
        computer.Os = os switch
        {
            OSs.WindowsXP => new WindowsXPOS(),
            OSs.Windows7 => new Windows7Os(),
            OSs.Windows10 => new Windows10Os(),
            OSs.Windows11 => new Windows11Os(),
            OSs.MacOS => new MacOS(),
            OSs.Debian => new DebianOs(),
            OSs.Ubuntu => new UbuntuOs(),
            _ => new Windows11Os(),
        };
    }
}
